package com.dmai.capacity.platform.oauth.common.service;

import com.dmai.capacity.platform.common.model.CapabilityPackageDeductionRule;


/**
 * 共享资源包抵扣规则
 */
public interface ICapabilityPackageDeductionRuleService {
    /**
     * 保存规则
     *
     * @param rule
     */
    int save(CapabilityPackageDeductionRule rule);


    /**
     * 删除规则
     *
     * @param capabilityId
     */
    int delete(Integer capabilityId);


    /**
     * 根据能力ID查询规则
     *
     * @param capabilityId
     * @return
     */
    CapabilityPackageDeductionRule get(Integer capabilityId);

}

